using UnityEngine;
using UnityEngine.UI;

namespace Core.Mgr.Localize
{
    public class LocalizedImage : MonoBehaviour
    {
        public Sprite cnImg;
        public Sprite enImg;

        private void Start()
        {
            Image im = GetComponent<Image>();
            if (LocalizedMgr.Ins.CurLanguage == SystemLanguage.ChineseSimplified)
            {
                im.sprite = cnImg;
            }
            else
            {
                im.sprite = enImg;
            }

            im.SetNativeSize();
        }
    }
}